package cn.lili.controller.feign;

import cn.lili.modules.goods.client.GoodsGrabClient;
import cn.lili.modules.grab.entity.dto.GoodsGrabReqParam;
import cn.lili.modules.grab.alibaba.service.GoodsGrabService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: ftyy
 * @date: 2022-01-14 10:42
 * @description: 商品采集
 */
@RestController
@RequiredArgsConstructor
public class GoodsGrabFeignController implements GoodsGrabClient {

    private GoodsGrabService goodsGrabService;

    @Override
    public void startGoodsGrab(GoodsGrabReqParam goodsGrabReqParam) {
        goodsGrabService.goodsGrab(goodsGrabReqParam);
    }
}
